peg (someone) as (something)

Translations
prendre quelqu’un pour
Definitions
To categorize or label someone in a specific way, often based on their behavior, characteristics, or perceived role.